package cn.imjzm.runcarserve.pojo;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "MQ-2 烟雾传感器数据模型")
public class SmokeData {

    @Schema(description = "模拟电压（单位：V）")
    private double voltage;

    @Schema(description = "传感器电阻 RS（单位：kΩ）")
    private double rs;

    @Schema(description = "烟雾浓度（单位：PPM）")
    private double ppm;

    public double getVoltage() {
        return voltage;
    }

    public void setVoltage(double voltage) {
        this.voltage = voltage;
    }

    public double getRs() {
        return rs;
    }

    public void setRs(double rs) {
        this.rs = rs;
    }

    public double getPpm() {
        return ppm;
    }

    public void setPpm(double ppm) {
        this.ppm = ppm;
    }

    @Override
    public String toString() {
        return "SmokeData{" +
                "voltage=" + voltage +
                ", rs=" + rs +
                ", ppm=" + ppm +
                '}';
    }
}
